<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.tjsinfo.tjsoa.system.vo.User"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>粮油集团办公自动化协作平台</title>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" id="txlz7"/>
	<style type="text/css">
			td {
				font:12px/170% "宋体", "新宋体", "黑体"; color:#000
			}
			th {
				font:12px/170% "宋体", "新宋体", "黑体"; color:#000
			}
	</style>
	<script type="text/javascript">
		window.onload = function(){windowonload();}
		function windowonload(){
			left.style.height = "100%";
			document.getElementById("table1").style.height = '84%';
			document.getElementById("div1").style.height = '99%';
			document.getElementById("left").style.height = '100%';
		}
	</script>
  </head>
  <%
		String moduleType = request.getParameter("moduleType");
		User user = (User)session.getAttribute("user");
   %>
  <body>
    <div id="left">
    <div class="zinav" id="div1">
      <h1></h1>
      <table width="100%" height="90%" border="0" cellspacing="0" cellpadding="0" id="table1">
          <tr valign="top">
            <td>
              <ul>
                <li class="z01" id="li1" onclick="bianhua(1);"><a href="<%=basePath %>tjsinfo/tjsoa/addresslist/toUpdateTjsUser.do?user_id=<%=user.getUser_id() %>&moduleType=<%=moduleType %>" target="mainFrame"></a></li>
                <li class="z02_over" id="li2" onclick="bianhua(2);"><a href="<%=basePath%>tjsinfo/tjsoa/addresslist/yifabuList.do" target="mainFrame"></a></li>
                <li class="z03" id="li3" onclick="bianhua(3);"><a href="<%=basePath%>tjsinfo/tjsoa/articles/ArticlesList.do?method=viewArticle&uuid=b4f81059f7f24b3ea2814b874cad5c95" target="blank"></a></li>
                <li class="z04" id="li4" onclick="bianhua(4);"><a href="<%=basePath%>tjsinfo/tjsoa/articles/ArticlesList.do?method=viewArticle&uuid=d49fb94cab554e91be69f8046a3604be" target="blank"></a></li>
             </ul>
            </td>
          </tr>
        </table>
	</div>
</div>
<script type="text/javascript">
	function submitform1(){
		var name = document.getElementById('listUserName').value;
		if(name == null || name.value == ''){
			alert('请填入查询人姓名');
		}else{
			if(checka(name, "|<>`&\\\/%;\'\"", "查询人姓名")){
				document.form1.submit();
			}
		}
	}
	
	/**
 * 检查是否有不符合要求的字符
 * @param src {String} 非法字符
 * @param checkvalue {String} 待检查的值

 * @return {boolean} true=合法,false=非法
 */
function checka(src, checkvalue, whichtext){
	var ret = 1;
	for(var i = 0, len = src.length; i < len; i++){
		var ch1 = src.substring(i, i + 1);
		for(var j = 0, len1 = checkvalue.length; j < len1; j++){
			if(ch1 == checkvalue.substring(j, j + 1)){
				ret = 0;
				break;
			}
		}
		if(!ret) break;
	}
	if(ret != 1){
		window.alert(whichtext + '含有非法字符！');
		return false;
	}else  //数据合法
		return true;
}

function bianhua(i){
	for(var j=1;j<=4;j++){
		var a = document.getElementById("li"+j);
		if(i == j){
			a.className = "z0"+i+"_over";
		}else{
			a.className = "z0"+j;
		}
	}
}
</script>
  </body>
</html>
